package Util;

import java.text.SimpleDateFormat;

/**
 * Created by zhangshuhan on 2019/3/20.
 */
public class DateUtil {

    public static final ThreadLocal<SimpleDateFormat> FULL_FORMAT = ThreadLocal.withInitial(() -> new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"));

    public static final ThreadLocal<SimpleDateFormat> DATE_FORMAT = ThreadLocal.withInitial(() -> new SimpleDateFormat("yyyy-MM-dd"));

    public static final ThreadLocal<SimpleDateFormat> TIME_FORMAT = ThreadLocal.withInitial(() -> new SimpleDateFormat("HH:mm:ss"));

}
